package com.xiemu.ironman.sdk.adaptor;

import com.xiemu.ironman.sdk.Calculator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CalculatorImpl implements Calculator {

    @Autowired
    CalculatorCore calculatorCore;



    @Override
    public int add(int a, int b) {

        /** 反射方式 */
      //  return new CalculatorCore().add(a, b);
        /** 注解方式s */
        int c = calculatorCore.add(a, b);
        return c;
    }
}
